package py.com.alfa.escriba.web.services;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import py.com.alfa.escriba.exception.ServiceException;
import py.com.alfa.escriba.persistence.dto.ControlestextoDTO;
import py.com.alfa.escriba.web.interceptor.InvocationContext;

public interface ControlestextoService {
  List<ControlestextoDTO> listControlestexto(InvocationContext ic) throws ServiceException;
  
  List<ControlestextoDTO> listControlestextoByIdControl(Long id,InvocationContext ic) throws ServiceException;

  ControlestextoDTO getControlestexto(Long id, InvocationContext ic) throws ServiceException;

  void deleteControlestexto(Long id, InvocationContext ic) throws ServiceException;

  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  ControlestextoDTO updateControlestexto(Long id, ControlestextoDTO dto, InvocationContext ic) throws ServiceException;

  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  ControlestextoDTO createControlestexto(ControlestextoDTO dto, InvocationContext ic) throws ServiceException;

}